package com.gamecollection.snake;

import com.gamecollection.mvc.GameEngine;
import com.gamecollection.snake.controller.SnakeController;
import com.gamecollection.snake.model.SnakeModel;
import com.gamecollection.snake.view.SnakeView;

/**
 * 贪吃蛇游戏主类
 */
public class SnakeGame {
    
    public static void main(String[] args) {
        // 创建MVC组件
        SnakeModel model = new SnakeModel();
        SnakeView view = new SnakeView(model);
        SnakeController controller = new SnakeController(model);
        
        // 创建游戏引擎
        GameEngine engine = new GameEngine(model, view, controller, 
            view.getWidth(), view.getHeight(), "贪吃蛇");
        
        // 启动游戏
        engine.launch();
    }
} 